<#import "/spring.ftl" as spring/>
<div class="tabSm none">
    <div class="tableArea">
        <div class="tableScroll tableScrollSm">
            <table cellpadding="0" class="tableHead">
                <thead>
                <tr>
                    <th class="tab-cz"><@spring.message "dict_delete" /></th>
                    <th class="tab-mfltp"><@spring.message "myWarehouse_pic" /></th>
                    <th class="tab-wlup"><spring:message
                            code="myWarehouse_nameandcode" /></th>
                    <th class="tab-mflkz"><spring:message
                            code="myWareMaterialGramWeight" /></th>
                    <th class="tab-mflcf"><spring:message
                            code="myWarehouse_Materialcomposition" /></th>
                    <th class="tab-mflzsmd"><spring:message
                            code="myWarehouse_Materialdensity" /></th>
                    <th class="tab-mflfg"><@spring.message "myWarehouse_MaterialStyle" /></th>
                    <th class="tab-jjnf"><spring:message
                            code="myWarehouse_MaterialColor" /></th>
                    <th class="tab-mflzf"><@spring.message "myWarehouse_MaterialWeave" /></th>
                    <th class="tab-mflsybw"><@spring.message "used_part" /></th>
                    <th class="tab-mfldh"><@spring.message "myWarehouse_inventory_quantity" /></th>
                    <th class="tab-mfldh"><@spring.message "myWarehouse_MaterialUnit" /></th>
                    <th class="tab-mflbz"><@spring.message "warehouse_remark" /></th>
                </tr>
                </thead>
            </table>
            <table cellpadding="0" class="tableBody">
                <tbody id ="changeMaterialBody" name="changeMaterialBody">
                <tr class="none">
                    <td class="tab-cz" onclick="removeFun(this)"><img src="/ls-erp/static/images/del_icon.png" class="delBtn"></td>
                    <td class="tab-mfltp"></td>
                    <td class="tab-wlup"></td>
                    <td class="tab-mflkz"></td>
                    <td class="tab-mflcf"></td>
                    <td class="tab-mflzsmd"></td>
                    <td class="tab-mflfg"></td>
                    <td class="tab-jjnf"></td>
                    <td class="tab-mflzf"></td>
                    <td class="tab-mflsybw">
                        <select style="width: 145px ;border:1px solid #acacac" name="" multiple="multiple" >
                        <#list itemList as item>
                            <option value="${item.itemCode}-${item.itemValue}" >${item.itemName}</option>
                        </#list>
                        </select>
                    </td>
                    <td class="tab-mfldh"></td>
                    <td class="tabwrite-mfldh" id = "materialUnit"></td>
                    <td class="tabwrite-bz" id = "materialRemarks"></td>
                    <td style="display:none;"></td>
                </tr>
                <#list cgMaterialList as cgList>
                    <#if cgList??&&(cgList?size > 0)>
                    <tr class="">
                        <td class="tab-cz" onclick="removeFun(this)"><img src="/ls-erp/a/static/images/del_icon.png" class="delBtn"></td>
                        <td>
                            <#if cgList.cgMaterialFile?exists&&cgList.cgMaterialFile!=''>
                                <p class='tab-mfltp'><img src='${StyleOptionList.materialFile}'></p>
                            <#else>
                                <p class='tab-mfltp'><img src="/ls-erp/a/static/images/pic-none.jpg"></p>
                            </#if>
                        </td>
                        <td class="tab-wlup"><#if cgList.cgMaterialNameCn??>${cgList.cgMaterialNameCn}</#if><br>${cgList.cgGaterialCd}</td>
                        <td class="tab-mflkz"><#if cgList.materialgramWeight??>${cgList.materialgramWeight}</#if></td>
                        <td class="tab-mflcf"><#if cgList.cgMaterialComposition??>${cgList.cgMaterialComposition}</#if></td>
                        <td class="tab-mflzsmd"><#if cgList.materialThreadCount??>${cgList.materialThreadCount}</#if></td>
                        <td class="tab-mflfg">${dict.getDictName(cgList.materialStyle)}</td>
                        <td class="tab-jjnf"><#if cgList.cgMaterialColor??>${cgList.cgMaterialColor}</#if></td>
                        <td class="tab-mflzf">${dict.getDictName(cgList.materialWeave)}</td>
                        <td class="tab-mflsybw">
                            <div id="tdTemp${cgList_index}">
                                <#if cgList.cgMaterialPlacement??>
                                    <#list cgList.cgMaterialPlacement?split(",") as placementItems>
                                    ${dict.getDictName(placementItems)}<br>
                                    </#list>
                                </#if>
                            </div>
                            <div id="selectTemp${cgList_index}">
                                <#if cgList.cgMaterialPlacement??>
                                    <#assign flg = "0">
                                    <select style="width: 145px ;border:1px solid #acacac" id="mpt${cgList_index}" name="changeMaterial.cgMatList[${cgList_index}].cgMaterialPlacement" multiple="multiple" >
                                        <#list itemList as item>
                                            <#assign flg = "0">
                                            <#list cgList.cgMaterialPlacement?split(",") as placementItems>
                                                <#if placementItems== (item.itemCode + "-" + item.itemValue)>
                                                    <option value="${item.itemCode}-${item.itemValue}" selected="selected">${item.itemName}</option>
                                                    <#assign flg = "1">
                                                    <#break>
                                                </#if>
                                            </#list>
                                            <#if flg=='0' >
                                                <option value="${item.itemCode}-${item.itemValue}" >${item.itemName}</option>
                                            </#if>
                                        </#list>
                                    </select>
                                </#if>
                            </div>
                        </td>
                        <td class="tab-mfldh"><#if cgList.materialQuantity??>${cgList.materialQuantity}</#if></td>
                        <td class="tabwrite-mfldh" id = "materialUnit"><#if cgList.materialLoss??>${cgList.materialLoss}</#if></td>
                        <td class="tabwrite-bz" id = "materialRemarks"><#if cgList.cgMaterialRemarks??>${cgList.cgMaterialRemarks}</#if></td>
                        <td style="display:none;">
                            <input type='hidden' class = 'materialRemarks' name='changeMaterial.cgMatList[${cgList_index}].cgMaterialRemarks' value="<#if cgList.cgMaterialRemarks??>${cgList.cgMaterialRemarks}</#if>"/>
                            <input type='hidden' class = 'materialUnit' name='changeMaterial.cgMatList[${cgList_index}].materialLoss' value="<#if cgList.materialLoss??>${cgList.materialLoss}</#if>"/>
                            <input type='hidden' name='changeMaterial.cgMatList[${cgList_index}].cgMaterialStageCd' value='AUDIT_PHASE_CD-PHASE_CD_10'/>
                            <input type='hidden' name='changeMaterial.cgMatList[${cgList_index}].materialUnitPrice' value='<#if cgList.cgMaterialId??>${cgList.materialUnitPrice}</#if>'/>
                            <input type='hidden' name='changeMaterial.cgMatList[${cgList_index}].cgMaterialId' value='<#if cgList.cgMaterialId??>${cgList.cgMaterialId}</#if>'/>
                        </td>
                    </tr>
                    </#if>
                </#list>
                </tbody>
            </table>
        </div>
    </div>
</div>
<div class="tabSm none">
    <div class="tableArea">
        <div class="tableScroll tableScrollSm">
            <table cellpadding="0" class="tableHead">
                <thead>
                <tr>
                    <th class="tab-cz"><@spring.message "dict_delete" /></th>
                    <th class="tab-wllb"><spring:message
                            code="opinion_moment" /></th>
                    <th class="tab-yjjyq"><spring:message
                            code="opinions_requirements" /></th>
                    <th class="tab-cjz"><@spring.message "style_creator" /></th>
                    <th class="tab-cjrq"><@spring.message "style_creatDate" /></th>
                </tr>
                </thead>
            </table>
            <table cellpadding="0" class="tableBody">
                <tbody id ="addOpinionBody" name="addOpinionBody">
                <tr class="none">
                    <td class="tab-cz" onclick = "removeFun(this)"><img src="/ls-erp/static/images/del_icon.png" class="delBtn"></td>
                    <td class="tab-wllb"></td>
                    <td class="tab-yjjyq" align="left"></td>
                    <td class="tab-cjz"></td>
                    <td class="tab-cjrq"></td>
                    <td style="display:none;"></td>
                </tr>
                <#if feedBackList??&&(feedBackList?size > 0) >
                    <#list feedBackList as fbList>
                    <tr>
                        <td class="tab-cz" onclick="removeFun(this)"><img src="/ls-erp/static/images/del_icon.png" class="delBtn"></td>
                        <td class="tab-wllb">${dict.getDictName(fbList.phaseCd)} </td>
                        <td class="tab-yjjyq" align="left"><#if fbList.feedRemarks??>  ${fbList.feedRemarks}</#if></td>
                        <td class="tab-cjz">${user}</td>
                        <td class="tab-cjrq">${(fbList.createTime)?string("yyyy-MM-dd hh:ss")}</td>
                        <td style="display:none;">
                            <input name="styleFeedBack.styleFeedBackList[${fbList_index}].phaseCd" value="${fbList.phaseCd}" type="hidden">
                            <input name="styleFeedBack.styleFeedBackList[${fbList_index}].createUser" value="${fbList.createUser}" type="hidden">
                            <input name="styleFeedBack.styleFeedBackList[${fbList_index}].createTime" value="${(fbList.createTime)?string("yyyy-MM-dd hh:ss")}" type="hidden">
                            <input name="styleFeedBack.styleFeedBackList[${fbList_index}].feedRemarks" value="<#if fbList.feedRemarks??>  ${fbList.feedRemarks}</#if>" type="hidden">
                        </td>
                    </tr>
                    </#list>
                </#if>
                </tbody>
            </table>
        </div>
    </div>
</div>
<div class="tabSm none">
    <div class="tableArea">
        <div class="tableScroll tableScrollSm">
            <table cellpadding="0" class="tableHead">
                <thead>
                <tr>
                    <th class="tab-cz"><@spring.message "dict_delete" /></th>
                    <th class="tab-zlwjmc"><spring:message
                            code="sample_version_file_name" /></th>
                    <th class="tab-bz-2"><@spring.message "common_remarks" /></th>
                    <th class="tab-scsj"><@spring.message "upload_time" /></th>
                    <th class="tab-cjz"><@spring.message "upload_user" /></th>
                </tr>
                </thead>
            </table>
            <table cellpadding="0" class="tableBody">
                <tbody id ="uploadFileMaterial" name="uploadFileMaterial">
                <tr class="none">
                    <td class="tab-cz" onclick = "removeFun(this)" ><img src="/ls-erp/static/images/del_icon.png"
                                                                         class="delBtn"></td>
                    <td class="tab-zlwjmc"></td>
                    <td class="tab-bz-2" style = "background-color:white"></td>
                    <td class="tab-scsj"></td>
                    <td class="tab-cjz">${user}</td>
                    <td style="display:none;"></td>
                </tr>
                <#assign x=0 />
                <#list imageList as igItem>
                    <#if igItem.fileKbn == 1 && igItem.serviceKbn == 0 >
                    <tr class="">
                        <td class="tab-cz" onclick="removeFun(this)"><img src="/ls-erp/static/images/del_icon.png" class="delBtn"></td>
                        <td class="tab-zlwjmc">${igItem.uploadFileName}</td>
                        <#if otherImageFlg == "specimenProduction">
                            <td class="tab-bz-2"><#if igItem.fileRemarks??>${igItem.fileRemarks} </#if></td>
                        <#else>
                            <td class="tab-bz-2" style = "background-color:white"><#if igItem.fileRemarks??>${igItem.fileRemarks} </#if></td>
                        </#if>
                        <td class="tab-scsj"><#if igItem.createDate??>  ${(igItem.createDate)?string("yyyy-MM-dd hh:ss")} </#if></td>
                        <td class="tab-cjz">${user}</td>
                        <td style="display:none;">

                            <input name="uploadFileData.uploadStyleList[${x}].uploadFileName" value="${igItem.uploadFileName}" type="hidden">
                            <input name="uploadFileData.uploadStyleList[${x}].filePath" value="${igItem.filePath}" type="hidden">
                            <input class="remarks" name="uploadFileData.uploadStyleList[${x}].fileRemarks" value="<#if igItem.fileRemarks??>${igItem.fileRemarks}</#if>" type="hidden">
                            <input name="uploadFileData.uploadStyleList[${x}].createUser" value="${igItem.createUser}" type="hidden">
                            <input name="uploadFileData.uploadStyleList[${x}].createTime" value="<#if igItem.createDate??>${(igItem.createDate)?string("yyyy-MM-dd hh:ss")}</#if>" type="hidden">
                            <input name="uploadFileData.uploadStyleList[${x}].moduleKbn" value="2" type="hidden">
                            <input name="uploadFileData.uploadStyleList[${x}].ftpFile" value="/bigcargoStyleFile" type="hidden">
                            <input name="uploadFileData.uploadStyleList[${x}].serviceKbn" value="0" type="hidden">
                            <input name="uploadFileData.uploadStyleList[${x}].fileKbn" value="${igItem.fileKbn}" type="hidden">
                            <#assign x=x+1 />
                        </td>
                    </tr>
                    </#if>
                </#list>
                </tbody>
            </table>
        </div>
    </div>
</div>
<div class="tabSm none">
    <div class="tableArea">
        <div class="tableScroll tableScrollSm">
            <table cellpadding="0" class="tableHead">
                <thead>
                <tr>
                    <th class="tab-cz"><@spring.message "dict_delete" /></th>
                    <th class="tab-zlwjmc"><spring:message
                            code="data_file_name" /></th>
                    <th class="tab-bz-2"><@spring.message "common_remarks" /></th>
                    <th class="tab-scsj"><@spring.message "upload_time" /></th>
                    <th class="tab-cjz"><@spring.message "upload_user" /></th>
                </tr>
                </thead>
            </table>
            <table cellpadding="0" class="tableBody">
                <tbody id ="uploadFileData" name="uploadFileData">
                <tr class="none">
                    <td class="tab-cz" onclick = "removeFun(this)" ><img src="/ls-erp/static/images/del_icon.png"
                                                                         class="delBtn"></td>
                    <td class="tab-zlwjmc"></td>
                    <td class="tab-bz-2" style = "background-color:white"></td>
                    <td class="tab-scsj"></td>
                    <td class="tab-cjz">${user}</td>
                    <td style="display:none;"></td>
                </tr>
                <#assign y=0 />
                <#list imageList as igItem>
                    <#if igItem.fileKbn == 1 && igItem.serviceKbn == 1 >
                    <tr class="">
                        <td class="tab-cz" onclick="removeFun(this)"><img src="/ls-erp/static/images/del_icon.png" class="delBtn"></td>
                        <td class="tab-zlwjmc">${igItem.uploadFileName}</td>
                        <#if otherImageFlg == "specimenProduction">
                            <td class="tab-bz-2" ><#if igItem.fileRemarks??>${igItem.fileRemarks} </#if></td>
                        <#else>
                            <td class="tab-bz-2" style = "background-color:white"><#if igItem.fileRemarks??>${igItem.fileRemarks} </#if></td>
                        </#if>

                        <td class="tab-scsj"><#if igItem.createDate??>${(igItem.createDate)?string("yyyy-MM-dd hh:ss")}</#if></td>
                        <td class="tab-cjz">${user}</td>
                        <td style="display:none;">

                            <input name="uploadFileData.uploadDataList[${y}].uploadFileName" value="${igItem.uploadFileName}" type="hidden">
                            <input name="uploadFileData.uploadDataList[${y}].filePath" value="${igItem.filePath}" type="hidden">
                            <input class="remarks" name="uploadFileData.uploadDataList[${x}].fileRemarks" value="<#if igItem.fileRemarks??>${igItem.fileRemarks} </#if>" type="hidden">
                            <input name="uploadFileData.uploadDataList[${y}].createUser" value="${igItem.createUser}" type="hidden">
                            <input name="uploadFileData.uploadDataList[${y}].createTime" value="<#if igItem.createDate??>${(igItem.createDate)?string("yyyy-MM-dd hh:ss")} </#if>" type="hidden">
                            <input name="uploadFileData.uploadDataList[${y}].moduleKbn" value="2" type="hidden">
                            <input name="uploadFileData.uploadDataList[${y}].ftpFile" value="/bigcargoStyleFile" type="hidden">
                            <input name="uploadFileData.uploadDataList[${y}].serviceKbn" value="1" type="hidden">
                            <input name="uploadFileData.uploadDataList[${y}].fileKbn" value="${igItem.fileKbn}" type="hidden">
                            <#assign y=y+1 />
                        </td>
                    </tr>
                    </#if>
                </#list>
                </tbody>
            </table>
        </div>
    </div>
</div>